package com.sts.common.utils;

import com.formdev.flatlaf.extras.FlatSVGIcon;
import lombok.Getter;

import javax.swing.*;

/**
 * @author lsl
 * @since 2025年07月17日 19:42
 */
@Getter
public class ImageUtil {

    private ImageIcon deleteIcon = null;
    private ImageIcon lineWrapIcon = null;
    private ImageIcon importIcon = null;
    private ImageIcon chooseFileIcon = null;

    private ImageUtil() {
        deleteIcon = buildIcon("images/delete.svg");
        lineWrapIcon = buildIcon("images/lineWrap.svg");
        importIcon = buildIcon("images/import.svg");
        chooseFileIcon = buildIcon("images/chooseFile.svg");
    }

    private FlatSVGIcon buildIcon(String name) {
        return new FlatSVGIcon(name);
    }
}
